package com.lipl.base.javase.demo;

import cn.hsa.mbs.common.utils.ObjectUtil;

/**
 * @Auther: 15541
 * @Date: 2020/12/25 20:21
 * @Description:
 */
public class BaseUtil {

    public static void setCurrentUserForPublicSer(User user){

        if(ObjectUtil.isEmpty(user.getId())){
            user.setId(1);
        }else{
            user.setId(user.getId());
        }

        user.setUserName("张三");

        user.setCityId(user.getCityId());

        System.out.println(user);
    }
}

